/*
 *             Copyright (C) 2024 Steve Jrong
 *
 * 	   GitHub Homepage: https://www.github.com/SteveJrong
 *      Gitee Homepage: https://gitee.com/stevejrong1024
 *
 * Licensed under the Apache License, Version 2.0 (the "License");

 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stevejrong.waiter.user.dbsdk.model;


import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


/**
 * 数据库对象PO - 顾客
 *
 * @author Steve Jrong
 * @since 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "t_guest_0")
public class GuestPO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long id;

    @Column(name = "main_id")
    private Long mainId;

    @Column(name = "partner_wx_user_open_id")
    private String partnerWxUserOpenId;

    @Column(name = "partner_wx_user_union_id")
    private String partnerWxUserUnionId;

    @Column(name = "partner_wx_user_nick_name")
    private String partnerWxUserNickName;

    @Column(name = "partner_wx_user_avatar_url")
    private String partnerWxUserAvatarUrl;

    @Column(name = "partner_wx_user_gender")
    private Integer partnerWxUserGender;

    @Column(name = "partner_wx_user_country")
    private String partnerWxUserCountry;

    @Column(name = "partner_wx_user_province")
    private String partnerWxUserProvince;

    @Column(name = "partner_wx_user_city")
    private String partnerWxUserCity;

    @Column(name = "partner_wx_has_advanced_auth")
    private Integer partnerWxHasAdvancedAuth;

    @Column(name = "partner_alipay_user_id")
    private String partnerAlipayUserId;

    @Column(name = "partner_alipay_user_nick_name")
    private String partnerAlipayUserNickName;

    @Column(name = "partner_alipay_user_avatar_url")
    private String partnerAlipayUserAvatarUrl;

    @Column
    private String tel;

    @Column
    private Integer status;

    @Column(name = "has_deleted")
    private Integer hasDeleted;

    @Column(name = "create_at")
    private LocalDateTime createAt;

    @Column(name = "update_at")
    public LocalDateTime updateAt;
}